package com.ikapp.jetpackcomposeuidemo

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.ikapp.jetpackcomposeuidemo.ui.theme.JetpackComposeUIDemoTheme
import com.ikapp.jetpackcomposeuidemo.weiget.ButtonTest
import com.ikapp.jetpackcomposeuidemo.weiget.CardLayout
import com.ikapp.jetpackcomposeuidemo.weiget.FloatingActionButton
import com.ikapp.jetpackcomposeuidemo.weiget.Slider
import com.ikapp.jetpackcomposeuidemo.weiget.flowLayout
import com.ikapp.jetpackcomposeuidemo.weiget.surface

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            Column {
                // 按钮
                ButtonTest()

                // 卡片布局
                CardLayout()

                // 悬浮按钮
                FloatingActionButton()

                // 滑条选项
                Slider()
                
                // FlowLayout(流式布局)
                flowLayout()

                // Surface
                surface()
            }
        }
    }
}